<div class="page-wrapper">
            <nav id="sidebar" class="sidebar-wrapper">
              <div class="sidebar-content">
               	 <div align="right" text_align="center">
	            <a  class="htmleaf-icon icon-htmleaf-home-outline" href="/" title="adog-home"></a>             
	            </div>
	            
                <a href="#" id="toggle-sidebar"><i class="fa fa-bars">菜单</i></a>
                <div class="sidebar-brand">
                    <a href="#"></a>
                </div>
                <div class="sidebar-header">
                	
                    <div class="user-pic">
                        <img class="img-responsive img-rounded" src="{{url_for('static',filename='img/user.jpg')}}" alt="">
                    </div>
                    <div class="user-info">
							{% if not current_user.is_authenticated %}
								<!--如果没有登录才显示如下导航-->
									<a href="/sign-up">注册</a>&nbsp;&nbsp;&nbsp;&nbsp;
								<a href="/sign-in">登录</a>
				
							{% else %}
				
								<!-- 如果登录了才显示如下导航-->
								<div class="dropdown">
									<a href="#" class="dropdown-toggle" data-toggle="dropdown">
										{{current_user.username}} 
										<b class="caret"></b>
									</a>
									<ul class="dropdown-menu">
										<li><a href="/user/profile">个人资料</a></li>
										<li><a href="/user/edit-profile">资料编辑</a></li>
				
									</ul>
									<div class="user-status">                       
				                    &nbsp;&nbsp;&nbsp;&nbsp; <a href="#"><span class="label label-success">Online</span></a>                           
				                    </div>
								</div>
				
								{% if current_user.is_root %}
								<!-- 管理员或root用户才看得到此导航-->
								<div class="dropdown">
									<a href="#" class="dropdown-toggle" data-toggle="dropdown">
										用户与角色管理
										<b class="caret"></b>
									</a>
									<ul class="dropdown-menu">
										<li><a href="/admin/role-add">添加角色</a></li>
									</ul>
								</div>
								{% endif %}
								<div><a href="/api/user/sign-out">退出</a></div>
							{% endif %}
						</ul>
                    </div>
                </div><!-- sidebar-header  -->
                <div class="sidebar-search">
                    <div>                   
                        <div class="input-group">                          
                            <input type="text" class="form-control search-menu" placeholder="Search for...">
                            <span class="input-group-addon"><i class="fa fa-search"></i></span>
                        </div>
                    </div>                    
                </div><!-- sidebar-search  -->
                <div class="sidebar-menu">
                    <ul>
                        <li class="sidebar-dropdown">
							<a href="/tv"><i class="fa fa-bar-chart-o"></i><span>行情分析</span></a>
							<a href="/adog_api/public/contact"><i class="fa fa-bar-chart-o"></i><span>联系</span></a>
                        </li>
                       
                        
                    </ul>
                   </div><!-- sidebar-menu  -->            
                </div><!-- sidebar-content  -->
                <div class="sidebar-footer">
                    <a href="#"><i class="fa fa-bell"></i><span class="label label-warning notification">3</span></a>
                    <a href="#"><i class="fa fa-envelope"></i><span class="label label-success notification">7</span></a>
                    <a href="#"><i class="fa fa-gear"></i></a>
                    <a href="#"><i class="fa fa-power-off"></i></a>
                </div>
            </nav><!-- sidebar-wrapper  -->